//package cn.tongdun.atreus.config;
//
//import org.springframework.boot.SpringApplication;
//import org.springframework.boot.env.EnvironmentPostProcessor;
//import org.springframework.core.env.ConfigurableEnvironment;
//import org.springframework.core.env.MapPropertySource;
//
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * @author wangze
// * @date 2021-10-24 15:08.
// **/
//public class LogPostProcessor implements EnvironmentPostProcessor {
//
//	private static final String PROPERTY_SOURCE_NAME = "defaultProperties";
//	@Override
//	public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
//		Map<String, Object> map = new HashMap<>();
//		// logging.tdlog.file=
//		map.put("logging.tdlog.file", "tdxmljn/tdlog.xml");
//		MapPropertySource target = (MapPropertySource) environment.getPropertySources().get(PROPERTY_SOURCE_NAME);
//		if (target == null) {
//			target = new MapPropertySource(PROPERTY_SOURCE_NAME, map);
//		}
//		environment.getPropertySources().addLast(target);
//	}
//}
